package cn.xyinping.order.domain;

import cn.xyinping.basic.domain.BasicDomain;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 27266
 * @desrciption 宠物订单
 * @date 2021/11/7
 */
@Data
public class OrderPet extends BasicDomain {
    //下单成功待支付
    public static final int STATE_WAIT_PAY = 0;
    //支付成功待发货
    public static final int STATE_SUCCESS_PAY = 1;
    //用户取消订单
    public static final int STATE_USER_CANCEL = 2;
    //订单超时自动取消
    public static final int STATE_PAY_OUTTIME_CANCEL = 3;
    //支付失败
    public static final int STATE_PAY_FAIL = 4;
    //已发货
    public static final int STATE_DELIVERY_SUCCESS = 5;
    //确认收货,订单关闭
    public static final int STATE_USER_CONFIRM = 6;
    //银联
    public static final int PAY_TYPE_BANK= 1;
    //微信
    public static final int PAY_TYPE_WECHAT= 2;
    //支付宝
    public static final int PAY_TYPE_ALIPAY= 3;
    //备注
    private String digest;
    //支付状态
    private Integer state = STATE_WAIT_PAY;
    //价格
    private BigDecimal totalPrice;
    private Integer totalCount;
    //订单号
    private String orderSn;
    // 最后修改时间
    private Date lastUpdateTime;
    //支付超时截至时间
    private Date payExpireTime;
    private Long userId;
    private Date createTime;
    private Integer payType;
}
